package com.co.server.service.vote.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.co.common.dao.BaseDao;
import com.co.common.service.BaseServiceImpl;
import com.co.server.dao.vote.TVoteUserDao;
import com.co.server.entity.vote.TVoteUser;
import com.co.server.service.vote.TVoteUserService;

@Service
public class TVoteUserServiceImpl extends BaseServiceImpl<TVoteUser, Integer> implements TVoteUserService {
    @Resource
    private TVoteUserDao tVoteUserDao;

    @Override
    protected BaseDao<TVoteUser, Integer> getBaseDao() {
        return tVoteUserDao;
    }

	public List<Map<String,Object>> queryItemCount(Integer voteId) {
		return tVoteUserDao.selectItemCount(voteId);
	}
}